using System;
using System.Collections.Generic;
using System.Text;

namespace slcl
{
    public class Prim
    {
        public enum ShapeType
        {
            Square,
            Cylinder,
            Sphere,
            Torus
        }

        /// <summary>
        /// Shape type of this prim.
        /// </summary>
        ShapeType Shape;

        List<Face>Faces;

        /// <summary>
        /// Parent prim in a linked set.
        /// </summary>
        Prim Parent;

        /// <summary>
        /// Simulator that this can be found in if it's a rexed prim.
        /// </summary>
        Prim Sim;

        /// <summary>
        /// Avatar that this is attached to if attached.
        /// </summary>
        Avatar Avatar;

        public Prim(ShapeType type)
        {
            Shape = type;
            Faces = new List<Face>();
        }
    }
}
